package com.queue.common.protocol;

/**
 * 解决消息内容粘包和拆包问题，将要传输的内容大小写入byteBuf的header中
 */
public class Protocol {
    private Integer len;

    private byte[] content;

    public Protocol(Integer len, byte[] content) {
        this.len = len;
        this.content = content;
    }

    public Integer getLen() {
        return len;
    }

    public void setLen(Integer len) {
        this.len = len;
    }

    public byte[] getContent() {
        return content;
    }

    public void setContent(byte[] content) {
        this.content = content;
    }
}
